<h1>Mails List</h1>

<table>
  <thead>
    <tr>
      <th>Mail</th>
      <th>Campaign</th>
      <th>Template</th>
      <th>Recipient</th>
      <th>Recipient</th>
      <th>Recipeint name</th>
      <th>Cc</th>
      <th>Ccn</th>
      <th>From address</th>
      <th>From name</th>
      <th>Subject</th>
      <th>Text</th>
      <th>Html</th>
      <th>Attachment</th>
      <th>Attachment name</th>
      <th>Attachment type</th>
      <th>Sent date</th>
      <th>Status</th>
      <th>Notes</th>
      <th>Created at</th>
      <th>Updated at</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($mails as $mail): ?>
    <tr>
      <td><a href="<?php echo url_for('mail/show?mail_id='.$mail->getMailId()) ?>"><?php echo $mail->getMailId() ?></a></td>
      <td><?php echo $mail->getCampaignId() ?></td>
      <td><?php echo $mail->getTemplateId() ?></td>
      <td><?php echo $mail->getRecipientId() ?></td>
      <td><?php echo $mail->getRecipient() ?></td>
      <td><?php echo $mail->getRecipeintName() ?></td>
      <td><?php echo $mail->getCc() ?></td>
      <td><?php echo $mail->getCcn() ?></td>
      <td><?php echo $mail->getFromAddress() ?></td>
      <td><?php echo $mail->getFromName() ?></td>
      <td><?php echo $mail->getSubject() ?></td>
      <td><?php echo $mail->getText() ?></td>
      <td><?php echo $mail->getHtml() ?></td>
      <td><?php echo $mail->getAttachment() ?></td>
      <td><?php echo $mail->getAttachmentName() ?></td>
      <td><?php echo $mail->getAttachmentType() ?></td>
      <td><?php echo $mail->getSentDate() ?></td>
      <td><?php echo $mail->getStatus() ?></td>
      <td><?php echo $mail->getNotes() ?></td>
      <td><?php echo $mail->getCreatedAt() ?></td>
      <td><?php echo $mail->getUpdatedAt() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('mail/new') ?>">New</a>
